import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router'
import Home from '../views/Home.vue'
import Iconselect from '../components/iconselect/src/index.vue'
import Container from '../components/container/src/index.vue'
const routes : RouteRecordRaw[] = [
	{
		path: '/',
		component: Container,
		children: [
			{
				path: '/',
				component: Home
			},
			{
				path: '/Iconselect',
				component: ()=>import('../views/iconselect/index.vue')
			},
			{
				path: '/ChooseArea',
				component: ()=>import('../views/chooseArea/index.vue')
			},
			{
				path: '/Trend',
				component: ()=>import('../views/trend/index.vue')
			},
			{
				path: '/Notification',
				component: ()=>import('../views/notification/index.vue')
			},
			{
				path: '/list',
				component: ()=>import('../views/list/index.vue')
			},
			{
				path: '/menu',
				component: ()=>import('../views/menu/index.vue')
			},
			{
				path: '/mProgess',
				component: ()=>import('../views/progress/index.vue')
			},
			{
				path: '/mChooseTime',
				component: ()=>import('../views/chooseTime/index.vue')
			},
			{
				path: '/mChooseDate',
				component: ()=>import('../views/chooseDate/index.vue')
			},
			{
				path: '/mChooseCity',
				component: ()=>import('../views/chooseCity/index.vue')
			},
			{
				path: '/mForm',
				component: ()=>import('../views/form/index.vue')
			}
			
	 
		]
	},


]

const router = createRouter({
	routes,
	history: createWebHistory()
})
export default router